package com.minxin.springcloud;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wangpeng on 2017/3/8.
 */
@FeignClient("providerserver")
@Component
public interface ConsumerClient {
    @RequestMapping(method = RequestMethod.GET, value = "/helloProvider")
    String testMethod(@RequestParam("str") String str);
}
